<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ECSHOP 管理中心 - 商品品牌 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="{{asset('admin/Styles/general.css')}}" rel="stylesheet" type="text/css" />
<link href="{{asset('admin/Styles/main.css')}}" rel="stylesheet" type="text/css" />
    <script src="/admin/Js/jquery.js" type="text/javascript"></script>
</head>
<body>
<h1>
    <span class="action-span"><a href="{{url('manager/brandadd')}}">添加品牌</a></span>
    <span class="action-span1"><a href="#">ECSHOP 管理中心</a></span>
    <span id="search_id" class="action-span1"> - 商品品牌 </span>
    <div style="clear:both"></div>
</h1>
<div class="form-div">
    <form action="" onsubmit="return sub()" name="searchForm" >

    <img src="/admin/Images/icon_search.gif" width="26" height="22" border="0" alt="search" />
    <input  id="search" type="text" name="brand_name" size="15" />
    <input type="submit" value=" 搜索 " class="button" />
    </form>
    <script>
        function sub(){
            var value = $('#search').val();
                location.href = "/manager/brandsearch/" + value;
            return false;
        }
    </script>
</div>
@if(count($errors)>0)
    @if(is_object($errors))
        @foreach($errors->all() as $error)
            <li>{{$error}}</li>
        @endforeach
    @else
        <li>$errors</li>
    @endif
@endif
<form method="post" action="" name="listForm">
    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>品牌名称</th>
                <th>品牌网址</th>
                <th>品牌标题</th>
                <th>品牌Logo</th>
                <th>品牌描述</th>
                <th>排序</th>
                <th>操作</th>
            </tr>
            @foreach($data as $v)
            <tr>
                <td class="first-cell">
                    {{$v->brand_name}}
                </td>
                <td align="center">
                    <a href="{{$v->brand_url}}" target="_brank">{{$v->brand_url}}</a>
                </td>
                <td align="center">{{$v->brand_title}}</td>
                <td align="center"><img src="{{asset($v->brand_thumb)}}" width="60" height="30" /></td>
                <td align="center"><textarea rows="" cols="">{{$v->brand_desc}}</textarea></td>
                <td align="center">{{$v->sort_order}}</td>
                <td align="center">
                <a href="{{url('manager/brandidet',$v->brand_id)}}" title="编辑">编辑</a> |
                <a href="{{url('manager/branddel',$v->brand_id)}}" title="移除">移除</a>
                </td>
            </tr>
            @endforeach

        </table>
    </div>
</form>
<!-- 分页开始 -->
@include('layouts.page')
<!-- 分页结束 -->

</body>
</html>